# Contributor:
# Maintainer:
pkgname=guacamole-server
pkgver=1.1.0
pkgrel=0
pkgdesc="package for guacamole server"
url="https://guacamole.apache.org"
arch="all"
license="GPL-3.0-or-later"
makedepends="cairo-dev libjpeg-turbo-dev libpng-dev ossp-uuid-dev ffmpeg-dev
	freerdp-dev pango-dev libssh2-dev libvncserver-dev pulseaudio-dev
	openssl-dev libvorbis-dev libwebp-dev perl libwebsockets-dev
	"
subpackages="$pkgname-doc $pkgname-dev"
source="http://apache.org/dyn/closer.cgi?action=download&filename=guacamole/$pkgver/source/guacamole-server-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-static \
		--with-libavcodec \
		--with-libavutil \
		--with-libswscale \
		--with-ssl \
		--without-winsock \
		--with-vorbis \
		--with-pulse \
		--with-pango \
		--with-terminal \
		--with-vnc \
		--with-rdp \
		--with-ssh \
		--without-telnet \
		--with-webp \
		--with-websockets
	make
}

package() {
	make DESTDIR="$pkgdir" install
}
sha512sums="a7d00c1120a9c472faeb119d54e8c29b24334e12d13a173cf56e1ed04abd327f2657dca7279586f3fd65bb3fbc9bdf8c86062e147c14b16c1e7b5658ff6f5cf8  guacamole-server-1.1.0.tar.gz"
